<link href="static/css/login.css" type="text/css" rel="stylesheet"/>
<link href="static/css/general.css" type="text/css" rel="stylesheet"/>
<div class='login'>
    <div class='header'>Login</div>
    <!-- Login -->
    <div class='main'>
        <form action='index.php?c=login' method='post' id='login_form' name='login_form'>
            <table>
                <tr>
                    <td colspan='2'><span class='error'><?php echo!empty($this->error) ? $this->error : ''; ?></span></td>
                </tr>
                <tr>
                    <td>
                        <label for='user_name'>Username:</label>
                    </td>
                    <td>
                        <input type='input' name='user[username]' id='user_name' value='<?php echo isset($this->_post['user']['username']) ? $this->_post['user']['username']: ''; ?>'  />
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for='user_name'>Password:</label>
                    </td>
                    <td>
                        <input type='password' name='user[password]' id='password' value='' />
                        <input type='hidden' name='act' value='login' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type='submit' name='login' id='login' value='Login' /></td>
                    <td>
                        <a href="index.php?c=register">Register</a>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>